import Vue from 'vue'
import App from './App.vue'
import Vant from "vant";
Vue.use(Vant)
import 'vant/lib/index.css'

Vue.config.productionTip = false
import VueRouter from 'vue-router'
Vue.use(VueRouter)

import Home from "./views/Home.vue";
import Classify from "./views/Classify.vue";
import Mine from "./views/Mine.vue";
import Order from "./views/Order.vue";

const routes = [{
  path: '/',
  redirect: '/home'
}, {
  path: '/home',
  component: Home
},
{
  path: '/classify',
  component: Classify
},
{
  path: '/mine',
  component: Mine
},
{
  path: '/order',
  component: Order
},
]
const router = new VueRouter({
  routes
})

import { Button } from 'vant';

Vue.use(Button);

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
